package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.math.BigInteger;

@FieldTypeAnnotation(tableName = "t_l_ck_offline_silver", desc = "离线收益", autoSave = true, uploadCk = true)
public class LoginRewardSilverLog extends ServerBaseLog {
    @FieldTypeAnnotation(isIndex = true,desc = "玩家id")
    private long userId;
    @FieldTypeAnnotation(desc = "最后在线时间")
    private long lastOnlineTime;
    @FieldTypeAnnotation(desc = "离线时旧银两")
    private BigInteger offlineSilver;
    @FieldTypeAnnotation(desc = "登陆时间")
    private long loginTime;
    @FieldTypeAnnotation(desc = "当前银两")
    private BigInteger loginSilver;
    @FieldTypeAnnotation(desc = "离线获得银两")
    private BigInteger offlineReward;

    public LoginRewardSilverLog(long userId, long lastOnlineTime, BigInteger offlineSilver, long loginTime, BigInteger loginSilver, BigInteger offlineReward) {
        this.userId = userId;
        this.lastOnlineTime = lastOnlineTime;
        this.offlineSilver = offlineSilver;
        this.loginTime = loginTime;
        this.loginSilver = loginSilver;
        this.offlineReward = offlineReward;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getLastOnlineTime() {
        return lastOnlineTime;
    }

    public void setLastOnlineTime(long lastOnlineTime) {
        this.lastOnlineTime = lastOnlineTime;
    }

    public BigInteger getOfflineSilver() {
        return offlineSilver;
    }

    public void setOfflineSilver(BigInteger offlineSilver) {
        this.offlineSilver = offlineSilver;
    }

    public long getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(long loginTime) {
        this.loginTime = loginTime;
    }

    public BigInteger getLoginSilver() {
        return loginSilver;
    }

    public void setLoginSilver(BigInteger loginSilver) {
        this.loginSilver = loginSilver;
    }

    public BigInteger getOfflineReward() {
        return offlineReward;
    }

    public void setOfflineReward(BigInteger offlineReward) {
        this.offlineReward = offlineReward;
    }
}
